<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;


/**
 * App\Models\Gift
 *
 * @property int $id
 * @property string $name 津贴名称
 * @property int $user_id 领取人
 * @property float $money 金额
 * @property int $send 发放月份
 * @property int $total 总共需要发放的月份
 * @property string $order_no 订单号
 * @property string $date 时间
 * @property \Carbon\Carbon|null $created_at
 * @property \Carbon\Carbon|null $updated_at
 * @property-read \App\Models\User $user
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gift whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gift whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gift whereMoney($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gift whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gift whereSend($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gift whereTotal($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gift whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gift whereUserId($value)
 * @mixin \Eloquent
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gift whereDate($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Gift whereOrderNo($value)
 */
class Gift extends Model
{


    protected $table = 'gift';

    protected $guarded = [];

    public function user()
    {
        return $this->hasOne('\App\Models\User', 'id', 'user_id');
    }

}
